package com.zsrt.java.day20161228.lh.day28.demo03;
/**
 *   String brand  double price double weight 
 * @author My
 *
 */
public class Car {
	
	/**
	 * 品牌
	 */
	String brand;
	/**
	 * 价格
	 */
	double price;
	/**
	 * 重量
	 */
	double weight; 
	
	public void setBrand(String brand){
		this.brand=brand;
	}

	public String getBrand(){
		return brand;
	}
	public void setPrice(double price){
		this.price=price;
	}
	
	public double getPrice(){
		return price;
	}
	public void setWeight(double weight){
		this.weight=weight;
		
		
	}
	public double getWeight(){
		return weight;
	}
	
	public static void main(String[] args) {
		Car car=new Car();
		car.setBrand("宝马");
		car.setPrice(1.1);
		car.setWeight(1000);
		
		String b = car.getBrand();
		double p = car.getPrice();
		double w = car.getWeight();
		System.out.println("品牌："+b+"\n"+"价格:"+p+"\n"+"重量:"+w);
		
	}
}
